﻿using System.ComponentModel.DataAnnotations;

namespace Vue.Admin.Models
{
	public class LoginDto
	{
		/// <summary>
		/// 登录名
		/// </summary>
		[Required(ErrorMessage = @"用户名不可为空")]
		public string username { get; set; }
		/// <summary>
		/// 登录密码
		/// </summary>
		[Required(ErrorMessage = "密码不可为空"), MinLength(6, ErrorMessage = @"密码最小为6位"), MaxLength(16, ErrorMessage = @"最大为16位")]
		public string userpwd { get; set; }
	}
}
